package com.yzm.edu_service.config;

import com.baomidou.mybatisplus.core.injector.ISqlInjector;
import com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @ClassName: EduConfig
 * @author: Yzm
 * @time: 2022/4/12 11:51
 * @Version 1.0
 */
@Configuration
@MapperScan("com.yzm.edu_service.mapper")
public class EduConfig {
    /**
     * @Description: 逻辑删除插件
     * @Author: Yzm
     * @Time: 2022/4/13 9:30
     * @Param: []
     * @return: com.baomidou.mybatisplus.core.injector.ISqlInjector
     */
    @Bean
    public ISqlInjector sqlInjector() {
        return new LogicSqlInjector();
    }
}
